import Vue from 'vue'
import Router from 'vue-router'
import Layout from '../page/admin/layout.vue'
import Home from '../page/admin/home.vue'
import Software from '../page/admin/software.vue'
import Message from '../page/admin/message.vue'
import User from '../page/admin/user.vue'
import User3 from '../page/admin/user3.vue'

Vue.use(Router)

export default new Router({
    routes: [

        {
            path: '/',
            name: 'Layout',
            component: Layout,
            children: [
                {
                    path: '/home',
                    name: 'Home',
                    component: Home,
                },
                {
                    path: '/software',
                    name: 'Software',
                    component: Software,
                },
                {
                    path: '/message',
                    name: 'Message',
                    component: Message,
                },
                {
                    path: '/user',
                    name: 'User',
                    component: User,
                },
                {
                    path: '/user3',
                    name: 'User3',
                    component: User3,
                }
            ]
        }
    ]
})
